<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">
    <style>
        .borderLine {
            border-radius: 4px;
            border: 1px solid #DDDDDD;
        }

    </style>
    <title>admin | Dashboard</title>
</head>

<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header navbar-brand">管理系统</div>
        <div class="navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="#">当前用户：<span class="badge" th:text="${account}"></span></a>
                </li>
                <li>
                    <a th:href="@{loginout}">退出</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-1">
            <ul class="nav nav-tabs nav-stacked borderLine">
                <li>
                    <a href="#systemSetting" class="nav-header navbar-collapse" data-toggle="collapse">菜单管理</a>
                    <ul id="systemSetting" class="nav nav-list">
                        <li><a th:href="@{goods}" target="mainFrame">货物管理</a></li>
                        <li><a href="#" target="mainFrame">车辆管理</a></li>
                        <li><a href="#" target="mainFrame">配货管理</a></li>
                    </ul>
                </li>
            </ul>
        </div>

        <div class="col-md-11">
            <iframe class="borderLine" th:name="mainFrame" th:src="@{welcome}" width="100%" height="600px">
            </iframe>
        </div>
    </div>
</div>

<!-- Mainly scripts -->
<script th:src="@{js/jquery-3.4.1.min.js}"></script>
<script th:src="@{js/bootstrap.min.js}"></script>

</body>
</html>
